﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CajaListForm.aspx.cs" 
Inherits="UILGestion.Admin.CajaChica.CajaListForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

<%@ Register src="CajaListGrid.ascx" tagname="CajaListGrid" tagprefix="uc1" %>
<%@ Register src="~/control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
    
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true" EnableScriptGlobalization="true">
    </asp:ToolkitScriptManager>
   
    <uc2:menuCtrl ID="menuCtrl1" runat="server" />

 <asp:Panel ID="Panel2" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="LISTAS CAJA CHICA" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>
  
 <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">
 
              <table cellspacing="1" width="100%">
                          <tr>
 <td align="right">Empresa:</td>
                    <td>
                        <cc1:DropDownCC ID="empresaDDL" runat="server" Width="300px" 
                            AutoPostBack="true" onselectedindexchanged="empresaDDL_SelectedIndexChanged" 
                             ></cc1:DropDownCC>
                   

</td>
                 </tr>
                          <tr>
 <td align="right">Proyecto:</td>
                    <td>
                    <asp:UpdatePanel ID="proyectoUPNL" runat="server" >
                    <ContentTemplate>
                     <cc1:DropDownCC ID="proyectoDropDownCC" runat="server" Width="300px" AutoPostBack="true" 
                            onselectedindexchanged="proyectoDropDownCC_SelectedIndexChanged" ></cc1:DropDownCC>
                    </ContentTemplate>
                    <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="empresaDDL" />

                    </Triggers>
                    </asp:UpdatePanel>
                       
                   

</td>
                 </tr>
                          <tr>
 <td align="right">Obra:</td>
                    <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                    <ContentTemplate>
                        <cc1:DropDownCC ID="obrasDropDownCC" runat="server" Width="300px" AutoPostBack="true" ></cc1:DropDownCC>
                        </ContentTemplate>
                        <Triggers>
                         <asp:AsyncPostBackTrigger ControlID="empresaDDL" />
                        <asp:AsyncPostBackTrigger ControlID="proyectoDropDownCC" />
                        </Triggers>
                        </asp:UpdatePanel>
                   

</td>
                 </tr>
              </table>
       

       <asp:UpdatePanel ID="UpdatePanel2" runat="server" >
                    <ContentTemplate>

                   
 <uc1:CajaListGrid ID="CajaListGrid1" runat="server"  DataSourceID="cajaListODS"/>

      <asp:ObjectDataSource ID="cajaListODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="GetCajaList" 
               SortParameterName="sortExpression" TypeName="BOL.cajaBL">
               <SelectParameters>
                   <asp:ControlParameter Name="idEmpresa"   ControlID="empresaDDL"    PropertyName="SelectedValue"/>
                   <asp:ControlParameter Name="idProyecto"   ControlID="proyectoDropDownCC"    PropertyName="SelectedValue"/>
                   <asp:ControlParameter Name="idObra"   ControlID="obrasDropDownCC"    PropertyName="SelectedValue"/>
                   <asp:Parameter Name="startRowIndex" Type="Int32" />
                   <asp:Parameter Name="maximumRows" Type="Int32" />
                   <asp:Parameter Name="sortExpression" Type="String" />
               </SelectParameters>
     </asp:ObjectDataSource>

 </ContentTemplate>

  </asp:UpdatePanel>
    </asp:Panel>
   
    </form>
</body>
</html>
